package cn.cyh.queue_service.mq.event;

import cn.cyh.queue_service.config.RabbitMQConfig;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 取号事件消息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TakeNumberEvent implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 事件类型
     */
    private String eventType = RabbitMQConfig.TAKE_NUMBER;
    
    /**
     * 票号
     */
    private String ticketNumber;
    
    /**
     * 业务类型ID
     */
    private Long serviceTypeId;
    
    /**
     * 时间戳
     */
    private Long timestamp;
    
    /**
     * 人脸特征长度
     */
    private Integer faceFeatureLength;
    
    /**
     * 业务类型名称
     */
    private String serviceTypeName;

    /**
     * WebsocketSession的ID
     */
    private String sessionId;

}